package com.yanfan.evaluation.service.impl;

import com.yanfan.evaluation.domain.InspectionReview;
import com.yanfan.evaluation.mapper.InspectionReviewMapper;
import com.yanfan.evaluation.service.IInspectionReviewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 工单任务评价Service业务层处理
 *
 * @author kerwincui
 * @date 2024-08-06
 */
@Service
public class InspectionReviewServiceImpl implements IInspectionReviewService
{
    @Autowired
    private InspectionReviewMapper inspectionReviewMapper;

    /**
     * 查询工单任务评价
     *
     * @param id 工单任务评价主键
     * @return 工单任务评价
     */
    @Override
    public InspectionReview selectInspectionReviewById(Long id)
    {
        return inspectionReviewMapper.selectInspectionReviewById(id);
    }

    /**
     * 查询工单任务评价列表
     *
     * @param inspectionReview 工单任务评价
     * @return 工单任务评价
     */
    @Override
    public List<InspectionReview> selectInspectionReviewList(InspectionReview inspectionReview)
    {
        return inspectionReviewMapper.selectInspectionReviewList(inspectionReview);
    }

    @Override
    public List<InspectionReview> selectInspectionReview(InspectionReview inspectionReview) {
        return inspectionReviewMapper.selectInspectionReview(inspectionReview);
    }

    /**
     * 新增工单任务评价
     *
     * @param inspectionReview 工单任务评价
     * @return 结果
     */
    @Override
    public int insertInspectionReview(InspectionReview inspectionReview)
    {
        return inspectionReviewMapper.insertInspectionReview(inspectionReview);
    }

    /**
     * 修改工单任务评价
     *
     * @param inspectionReview 工单任务评价
     * @return 结果
     */
    @Override
    public int updateInspectionReview(InspectionReview inspectionReview)
    {
        return inspectionReviewMapper.updateInspectionReview(inspectionReview);
    }

    /**
     * 批量删除工单任务评价
     *
     * @param ids 需要删除的工单任务评价主键
     * @return 结果
     */
    @Override
    public int deleteInspectionReviewByIds(Long[] ids)
    {
        return inspectionReviewMapper.deleteInspectionReviewByIds(ids);
    }

    /**
     * 删除工单任务评价信息
     *
     * @param id 工单任务评价主键
     * @return 结果
     */
    @Override
    public int deleteInspectionReviewById(Long id)
    {
        return inspectionReviewMapper.deleteInspectionReviewById(id);
    }
}
